<style>
<!--
.grid-view .button-column a{
	display: block;
	width: 64px;
	height: 20px;
	background: url("<?php echo Yii::app()->baseUrl?>/images/paynow.png") no-repeat;
	font-size:0;
	line-height:99999px;
	padding: 0px;
	margin: 10px;	
}
-->
</style>

<?php Yii::app()->clientScript->registerCss('bhistory', "
	#content .account-main{height:810px}
	.account-main .account-main-right{height:760px;}
")?>
<?php Yii::app()->clientScript->registerScript('topMenuSelect',"
	$('#top_menu_account').addClass('selected');
");?>
<div class="account-main-right">123123123
	<ul>
		<li class="account-right-text1">Won Auctions</li>
		<li class="dashed-line3"></li>
	</ul>
	<ul>
	 	<?php $this->widget('zii.widgets.grid.CGridView', array(
			'id' => 'wlist-grid',
			'dataProvider' => $wauction->search(),
	 		'enableSorting' => false,
	 		'cssFile' => Yii::app()->baseUrl.'/css/igrid/style.css',
	 		'summaryText' => '',
	 		'pager' => array('header' => ''),
			'columns'=>array(
				array(
					'header' => 'Auction ID',
					'value' => '$data->id',
					'headerHtmlOptions' => array('style'=>'width:90px'),
				),
				array(
					'header' => 'Auction Name',
					'value'=>'chtml::link($data->title, Yii::app()->createUrl("/detail/".$data->id))',
					'type' => 'raw',
					'headerHtmlOptions' => array('style'=>'width:170px'),
				),
				array(
					'header' => 'Date Won',
					'value' => 'date("m-d-Y H:i:s T", CHtml::value($data, "userOrder.date_won"))',
					'headerHtmlOptions' => array('style'=>'width:165px'),
				),
				array(
					'header' => 'Price Won',
					'value' => '"$".CHtml::value($data, "userOrder.price")',
				),
				array(
					'header' => 'QTY',
					'value' => 'CHtml::value($data, "userOrder.quantity")',
				),
				array(
					'header' => 'Total Price',
					'value' => '"$".CHtml::value($data, "userOrder.total_price")',
				),
				array(
					'header' => 'Pay Now',
					'class' => 'CButtonColumn',
					'template' => '{view}',
					'buttons' => array(
						'view' => array(
							'label' => 'Pay Now',
							'imageUrl' => false,
							'url' => 'Yii::app()->createUrl("checkout/{$data->id}")',
							'visible' => '$data->showPayNow($data->expires_time)',
						),
					),
				),
			),
		));?>
	</ul>
</div>